package com.extweb4j.core.bean;

import java.util.List;

/**
 * @description: .
 * @author: ZhaoWeiNan .
 * @createdTime: 2018/12/13 .
 * @version: 1.0 .
 */
public class PageInfo<T> {


    /**
     * firstPage : true
     * lastPage : true
     * list : [{"create_time":"2016-07-11 10:50:15","id":"e2f26329c49e4e9fbb36fb74a1cedb1e","role_desc":"用于所有查询权限","role_name":"查询角色","row_status":"0          ","tempcolumn":0,"temprownumber":1},{"create_time":"2016-06-11 11:39:16","id":"6abdd6fe57694c4b992be3d5a554ca11","role_desc":"普通管理员","role_name":"普通管理员","row_status":"0          ","tempcolumn":0,"temprownumber":2},{"create_time":"2016-06-08 14:40:54","id":"380dc2536c554eae9655ccc05f16374f","role_desc":"拥有所有权限","role_name":"超级管理员","row_status":"0          ","tempcolumn":0,"temprownumber":3}]
     * pageNumber : 1
     * pageSize : 20
     * totalPage : 1
     * totalRow : 3
     */

    private boolean firstPage;
    private boolean lastPage;
    private int pageNumber;
    private int pageSize;
    private int totalPage;
    private int totalRow;
    private List<T> list;

    public boolean isFirstPage() {
        return firstPage;
    }

    public void setFirstPage(boolean firstPage) {
        this.firstPage = firstPage;
    }

    public boolean isLastPage() {
        return lastPage;
    }

    public void setLastPage(boolean lastPage) {
        this.lastPage = lastPage;
    }

    public int getPageNumber() {
        return pageNumber;
    }

    public void setPageNumber(int pageNumber) {
        this.pageNumber = pageNumber;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getTotalPage() {
        return totalPage;
    }

    public void setTotalPage(int totalPage) {
        this.totalPage = totalPage;
    }

    public int getTotalRow() {
        return totalRow;
    }

    public void setTotalRow(int totalRow) {
        this.totalRow = totalRow;
    }

    public List<T> getList() {
        return list;
    }

    public void setList(List<T> list) {
        this.list = list;
    }

}

